Grabs are non-failable now, we do not need to check for
the backend seat actually having been able to perform the
request.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4020>
return false;
const grab = Main.pushModal(this);
- // We expect at least a keyboard grab here
- if ((grab.get_seat_state() & Clutter.GrabState.KEYBOARD) === 0) {
- Main.popModal(grab);
- return false;
- }
this._grab = grab;
this._haveModal = true;
this._modifierMask = primaryModifier(mask);
cr.fill();
cr.$dispose();
}
-